package cn.simon.service;

import cn.simon.pojo.Order;
import cn.simon.pojo.User;
import cn.simon.vo.GoodsVo;
import cn.simon.vo.OrderVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 * *simon-yian 开心
 * @author simon-yian
 *
 */
public interface IOrderService extends IService<Order> {

    public Order seckill(User user, GoodsVo goods);
    Order findOrderByorderId(Long orderId);

    /**
     * @功能描述: 创建秒杀地址
     * @Param:
     * @Return:
     * @Author simon-yi'an
     * @Date 2022/11/9 22:51
     */
    String createPath(User user, Long goodsId);

    /**
     * @功能描述: 秒杀地址校验
     * @Param:
     * @Return:
     * @Author simon-yi'an
     * @Date 2022/11/9 23:12
     */
    boolean checkPath(User user, Long goodsId, String path);

    /**
     * @功能描述: 校验秒杀验证码
     * @Param:
     * @Return:
     * @Author simon-yi'an
     * @Date 2022/11/10 11:27
     */
    boolean checkCaptcha(User user, Long goodsId, String captcha);
}
